﻿using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;

namespace JNPF.Basics.Models.System.Dtos.ModuleButton
{
    public class ModuleButtonUpInput
    {
        /// <summary>
        /// 上级id
        /// </summary>
        [Required(ErrorMessage = "上级id不能为空")]
        public string parentId { get; set; }
        /// <summary>
        /// 按钮名称
        /// </summary>
        [Required(ErrorMessage = "按钮名称不能为空")]
        public string fullName { get; set; }
        /// <summary>
        /// 按钮图标
        /// </summary>
        [Required(ErrorMessage = "按钮图标不能为空")]
        public string icon { get; set; }
        /// <summary>
        /// 按钮编码
        /// </summary>
        [Required(ErrorMessage = "按钮编码不能为空")]
        public string enCode { get; set; }
        /// <summary>
        /// 按钮状态(1-可用,0-不可用)
        /// </summary>
        [Required(ErrorMessage = "按钮状态不能为空")]
        public int? enabledMark { get; set; }
        /// <summary>
        /// 按钮说明
        /// </summary>
        public string description { get; set; }
        /// <summary>
        /// 排序码
        /// </summary>
        [Required(ErrorMessage = "排序码不能为空")]
        public long? sortCode { get; set; }
    }
}
